<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <title>Spring Security Example </title>
	</head>
	<body>
	    <div th:if="${param.error}" th:text="${session.SPRING_SECURITY_LAST_EXCEPTION.message}">
            Invalid username and password.
        </div>
        <div th:if="${param.logout}">
            You have been logged out.
        </div>
	    <form th:action="@{/login}" method="post">
	        <div><label> 用户名 : <input type="text" name="username"/></label></div>
	        <div><label> 密  码 : <input type="password" name="password"/></label></div>
	        <div><input type="submit" value="登录"/></div>
	        <input type="checkbox" name="remember-me" value="true" th:checked="checked"/>
	        <p>Remember me</p>
	    </form>
	</body>
</html>